<%@ Page Language="VB"  AutoEventWireup="false" CodeFile="Copy of actaEdit.aspx.vb" Inherits="_Default" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>.::Poderosa::......</title>
    <link href="style/StyleSheet.css" rel="stylesheet" type="text/css" />
        <script language="javascript" type="text/javascript" src="script/functions.js"></script>
        <script language="javascript" type="text/javascript" src="script/validacion.js"></script>
      <!--aqui va el script para el text area y para el jquery, el jquery es para el textarea y para el suggets-->
    
      <!--<script language="javascript" type="text/javascript" src="script/jquery-ui-1.8.1.custom.min.js"></script>
      -->
      <script language="javascript" type="text/javascript" src="script/jquery-1.4.2.min.js"></script>
      <script language="javascript" type="text/javascript" src="script/jquery.cokidoo-textarea.js"></script>
      <script  type="text/javascript">
            $(document).ready(function(){
                $(".ClassAcuerdos").autoResize();
            });
            function listar(){
                $(".ClassAcuerdos").autoResize();
            }
            
            function recargarFrame(){
                //document.getElementById('btnposicion');
                var objBT1=document.getElementById("btnposicion");    
                var objeto1 = window.parent.document.getElementById('idframe');
                objeto1.style.height = ((objBT1.offsetTop) + 150) +"px" ;
            }   

            function suggets_DeConocimiento(source, eventArgs) {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var ids = document.getElementById('hdn_idConocimiento_sugget').value.split("|");
                var values = eventArgs.get_value().split("|");
                if (ids.length > 0 && values.length > 0) {
                    document.getElementById(ids[0]).value = values[0];
                    document.getElementById(ids[1]).value = values[1];
                    document.getElementById(ids[2]).value = values[2];
                    //alert(document.getElementById(ids[1]).value);
                }
            }
            

            
            function suggets_acuerdos(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var ids  = document.getElementById('hdn_idRespon_acuerdos_sugget').value.split("|");
                var values = eventArgs.get_value().split("|");
                if(ids.length>0 && values.length>0){
                    document.getElementById(ids[0]).value = values[0];
                    document.getElementById(ids[1]).value = values[1];
                    //alert(document.getElementById(ids[1]).value);
                }
            }

            function suggets_acuerdos_solicitante(source, eventArgs) {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var ids = document.getElementById('hdn_idSolici_acuerdos_sugget').value.split("|");
                var values = eventArgs.get_value().split("|");
                if (ids.length > 0 && values.length > 0) {
                    document.getElementById(ids[0]).value = values[0];
                    document.getElementById(ids[1]).value = values[1];
                    //alert(document.getElementById(ids[1]).value);
                }
            }
            
            function suggets_agenda(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var id  = document.getElementById('hdn_idRespon_agenda_sugget').value;
                document.getElementById(id).value = eventArgs.get_value();
            }
            
           
            
            function suggets_Area(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                
                document.getElementById("txtidArea").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
            
            function suggets_Moderador(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                
                document.getElementById("txtidmodderador").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
 
            function suggets_Secretario(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                
                document.getElementById("txtidSecretario").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
            function suggets_Facilitador(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                
                document.getElementById("txtidFacilitador").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
            
            function suggets_Asistentes(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var cod = eventArgs.get_value().split("|");
                var strText  = document.getElementById('hdn_asistente_sugget').value.split("|");
                
                if(strText.length>0){
                    //recupero la informacion parametrizada del webmethod, y del hidden que guarda 2 nombres del text
                    document.getElementById(strText[0]).value = cod[0];
                    document.getElementById(strText[1]).value = cod[1];
                    document.getElementById(strText[1]).readOnly = true;
                    //alert(document.getElementById(strText[0]).value);
                }
                //alert(document.getElementById(id).value);
            }

            function suggets_Asunto(source, eventArgs) {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());

                document.getElementById("txtidAsunto").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
      </script>
      
</head>
<body onload="javascript:recargarFrame();">
    <form id="form1" runat="server">
    
    
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="width:680px; margin:0px 0px 0px 0px; text-align:center;">
        <table  border="0" cellpadding="0" cellspacing="0" width="680" >
            <tr>
                <td style="height: 43px; text-align:left;">&nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="height: 43px">
                    <asp:LinkButton ID="lbRetornar" runat="server" CssClass="btnRetornar" >Cancelar</asp:LinkButton>
                    <asp:LinkButton ID="lbImprimir" runat="server" CssClass="btnImprimir">Imprimir</asp:LinkButton>
                    <asp:LinkButton ID="lbPublicar" runat="server" CssClass="btnPublicar" OnClientClick="return validarActas();">Publicar</asp:LinkButton>
                    <asp:LinkButton ID="lbGuardar" runat="server" CssClass="btnGuardar" OnClientClick="return validarActas();">Guardar</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" class="cabecera" width="495">
                        <tr>
                            <td style="width: 380px" class="colorCabecera">
                                ACTA DE REUNI&Oacute;N
                            </td>
                            <td>
                                <asp:TextBox ID="txtnumacta" runat="server"></asp:TextBox></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:HiddenField ID="txtestadoActa" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="text-align: center; height: 20px;">
                </td>
            </tr>
            <tr>
                <td><!--aqui va el segundo modulo del detalle-->
                    <table cellpadding="0" cellspacing="0" style="width:750px;"  border="0">
                        <tr>
                            <td><!--aqui va la cabecera lateeral izquierda-->
                                <table style="width:340px;" cellpadding="0" cellspacing="0" class="tblBorderNegro">
                                    <tr>
                                        <td style="width:152px;" align="left" class="espacioCelda BorderNegroTD ColorFondo">Invitaci&oacute;n</td>
                                        <td class="espacioCelda BorderNegroTD_derecha" align="left">
                                            <asp:HiddenField ID="hfIdInvitacion" runat="server" />
                                            <asp:LinkButton ID="lbbuscarInv" runat="server">Buscar Invitaci&oacute;n</asp:LinkButton>
                    <asp:LinkButton ID="lbTargetInvitacion" runat="server"></asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:152px;" align="left" class="espacioCelda BorderNegroTD ColorFondo">Equipo de Trabajo:</td>
                                        <td class="espacioCelda BorderNegroTD_derecha" align="left">
                                            <asp:DropDownList ID="ddlEquipoTrabajo" 
                                                runat="server" Width="252px" AutoPostBack="True">
                                            <asp:ListItem Selected="True">Area 1</asp:ListItem>
                                            <asp:ListItem>Area 2</asp:ListItem>
                                            <asp:ListItem>Area 3</asp:ListItem>
                                            <asp:ListItem>Area 4</asp:ListItem>
                                        </asp:DropDownList></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda BorderNegroTD ColorFondo">
                                             <span lang="ES-PE">Asunto/<br />Tema</span>:
                                        </td>
                                        <td class="espacioCelda BorderNegroTD_derecha" align="left">
                                            <asp:UpdatePanel ID="UpdatePanel10" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtAsunto" runat="server" Width="190px"></asp:TextBox>
                                                    <asp:LinkButton ID="lbLimpiarAsunto" runat="server">Limpiar</asp:LinkButton>
                                                    <cc1:AutoCompleteExtender 
                                                        ID="AutoCompleteExtender1" runat="server" ServiceMethod="ListarAsunto"
                                                        ServicePath="WSbusquedas.asmx" TargetControlID="txtAsunto" 
                                                        MinimumPrefixLength="1" OnClientItemSelected="suggets_Asunto" 
                                                        CompletionInterval="200" 
                                                        CompletionListCssClass="autocomplete_completionListElement" 
                                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                        CompletionListItemCssClass="autocomplete_listItem">
                                                    </cc1:AutoCompleteExtender>
                                                    <asp:HiddenField ID="txtidAsunto" runat="server" />
                                                </ContentTemplate>
                                             </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda BorderNegroTD ColorFondo">&Aacute;rea:</td>
                                        <td class="espacioCelda BorderNegroTD_derecha" align="left">
                                            <asp:UpdatePanel ID="UpdatePanel9" runat="server">
                                                    <ContentTemplate>
                                                        <asp:TextBox ID="txtArea" runat="server" Width="255px"></asp:TextBox>
                                                        <cc1:AutoCompleteExtender 
                                                            ID="AutoCompleteExtender7" runat="server" ServiceMethod="ListarArea"
                                                            ServicePath="WSbusquedas.asmx" TargetControlID="txtArea" 
                                                            MinimumPrefixLength="1" OnClientItemSelected="suggets_Area" 
                                                            CompletionInterval="200" 
                                                            CompletionListCssClass="autocomplete_completionListElement" 
                                                            CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                            CompletionListItemCssClass="autocomplete_listItem">
                                                        </cc1:AutoCompleteExtender>
                                                        <asp:HiddenField ID="txtidArea" runat="server" />
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda BorderNegroTD ColorFondo">Lugar:</td>
                                        <td align="left" class="espacioCelda BorderNegroTD_derecha">
                                             <asp:UpdatePanel ID="UpdatePanel11" runat="server">
                                                    <ContentTemplate>
                                                      <asp:Panel ID="pnllugar" runat="server">
                                                          <asp:DropDownList ID="ddllugar" runat="server" Width="250px" 
                                                              AutoPostBack="True">
                                                          </asp:DropDownList>
                                                      </asp:Panel>
                                                      <asp:Panel ID="pnlOtroLugar" runat="server" Visible="False">
                                                          <asp:TextBox runat="server" ID="txtOtroLugar" Width="248px"></asp:TextBox>
                                                      </asp:Panel>
                                                    </ContentTemplate>
                                             </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda BorderNegroTD ColorFondo">Moderador:
                                        </td>
                                        <td align="left" class="espacioCelda BorderNegroTD_derecha">
                                            
                                                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                    <ContentTemplate>
                                                        <asp:TextBox ID="txtmoderador" runat="server" Width="255px"></asp:TextBox><cc1:AutoCompleteExtender 
                                                            ID="AutoCompleteExtender3" runat="server" ServiceMethod="ListarModerador"
                                                            ServicePath="WSbusquedas.asmx" TargetControlID="txtmoderador" 
                                                            MinimumPrefixLength="1" OnClientItemSelected="suggets_Moderador" 
                                                            CompletionInterval="200" 
                                                            CompletionListCssClass="autocomplete_completionListElement" 
                                                            CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                            CompletionListItemCssClass="autocomplete_listItem">
                                                        </cc1:AutoCompleteExtender>
                                                        <asp:HiddenField ID="txtidmodderador" runat="server" />
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda BorderNegroTD ColorFondo">
                                            Secretario:&nbsp;
                                        </td>
                                        <td align="left" class="espacioCelda BorderNegroTD_derecha">
                                            <asp:UpdatePanel ID="UpdatePanel7" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtsecretario" runat="server" Width="97%"></asp:TextBox><asp:HiddenField ID="txtidSecretario" runat="server" />
                                                    <cc1:AutoCompleteExtender ID="AutoCompleteExtender4" runat="server" 
                                                        TargetControlID="txtsecretario" MinimumPrefixLength="1" 
                                                        OnClientItemSelected="suggets_Secretario" ServiceMethod="ListarSecretario" 
                                                        ServicePath="WSbusquedas.asmx" CompletionInterval="200" 
                                                        CompletionListCssClass="autocomplete_completionListElement" 
                                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                        CompletionListItemCssClass="autocomplete_listItem">
                                                    </cc1:AutoCompleteExtender>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda BorderNegroTD ColorFondo">
                                            Facilitador:
                                        </td>
                                        <td align="left" class="espacioCelda BorderNegroTD_derecha">
                                            <asp:UpdatePanel ID="UpdatePanel8" runat="server">
                                                <ContentTemplate>
                                            <asp:TextBox ID="txtfacilitador" runat="server" Width="99%"></asp:TextBox>
                                                    <asp:HiddenField ID="txtidFacilitador" runat="server" />
                                                    <cc1:AutoCompleteExtender ID="AutoCompleteExtender5" runat="server" MinimumPrefixLength="1"
                                                        ServiceMethod="ListarFacilitador" 
                                                        ServicePath="WSbusquedas.asmx" 
                                                        TargetControlID="txtfacilitador" 
                                                        OnClientItemSelected="suggets_Facilitador" 
                                                        CompletionInterval="250"
                                                        CompletionListCssClass="autocomplete_completionListElement"
                                                        CompletionListItemCssClass="autocomplete_listItem"
                                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem">
                                                    </cc1:AutoCompleteExtender>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width:30px; height: 111px;">
                                &nbsp;
                            </td>
                            <td style="height: 111px" valign="top">
                               <table cellpadding="0" cellspacing="0"  border="0" style="width:300px;" class="tblBorderNegro">
                                    <tr>
                                        <td style="width:70px;" align="left" class="espacioCelda BorderNegroTD ColorFondo">Fecha:</td>
                                        <td style="width:130px;" align="left" class="espacioCelda BorderNegroTD_derecha">
                                            <asp:TextBox ID="txtFechaActa"  runat="server" Width="85%"></asp:TextBox></td>
                                        <td align="left" class="espacioCelda BorderNegroTD ColorFondo">Semana:</td>
                                        <td style="width:99px;" align="left" class="espacioCelda BorderNegroTD_derecha">
                                            <asp:TextBox ID="txtsemana" runat="server" Width="47px" Enabled="False"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="espacioCelda BorderNegroTD ColorFondo">
                                            Inicio:</td>
                                        <td align="left" class="espacioCelda BorderNegroTD_derecha">
                                            <asp:TextBox ID="txtinicio" runat="server" Width="85%"></asp:TextBox></td>
                                        <td align="left" class="espacioCelda BorderNegroTD ColorFondo">
                                            Fin:</td>
                                        <td align="left" class="espacioCelda BorderNegroTD_derecha"><asp:TextBox ID="txtfin" runat="server" Width="80px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="espacioCelda BorderNegroTD ColorFondo">
                                            Duracion:</td>
                                        <td colspan="3" align="left" class="espacioCelda BorderNegroTD_derecha">
                                            &nbsp;<asp:TextBox ID="txtduracion" runat="server" Width="155px"></asp:TextBox></td>
                                    </tr>
                               </table>                                 
                                <cc1:CalendarExtender ID="CalendarExtender2" runat="server" Format="dd/MM/yyyy" 
                                    TargetControlID="txtFechaActa">
                                </cc1:CalendarExtender>
                                <cc1:MaskedEditExtender ID="MaskedEditExtender3" runat="server" Mask="99:99" MaskType="Time"
                                    TargetControlID="txtinicio">
                                </cc1:MaskedEditExtender>
                                <cc1:MaskedEditExtender ID="MaskedEditExtender4" runat="server" Mask="99:99" MaskType="Time"
                                    TargetControlID="txtfin">
                                </cc1:MaskedEditExtender>
                            </td>
                        </tr>
                    </table> 
                </td>
            </tr>
            <tr>
                <td style="height:35px;">
                    &nbsp;<!--linea de separacion--></td>
            </tr>
            <tr>
                <td >
                    <asp:UpdatePanel ID="UpdatePanel6" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" style="height: 21px" align="left">
                                        <label> Asistentes:</label>
                                        <asp:LinkButton ID="lbAgregarAsis" runat="server" CssClass="agregar">Agregar Fila</asp:LinkButton></td>
                                </tr>
                                <tr>
                                    <td >
                                        <asp:GridView ID="gvAsistentes" runat="server" AutoGenerateColumns="False" Width="100%" OnRowCommand="gvAsistentes_RowCommand" OnRowDataBound="gvAsistentes_RowDataBound" DataKeyNames="activo" CssClass="GridView">
                                           <Columns>
                                               <asp:BoundField DataField="num" HeaderText="N&#176;" >
                                                   <ItemStyle Width="22px" CssClass="celdaGrid" />
                                                   <HeaderStyle CssClass="celdaGrid" />
                                               </asp:BoundField>
                                                 <asp:TemplateField HeaderText="Asisti&oacute;">
                                                     <ItemTemplate>
                                                         <asp:CheckBox ID="chkAsistio" runat="server" />
                                                     </ItemTemplate>
                                                     <EditItemTemplate>
                                                         <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Asistio") %>'></asp:TextBox>
                                                     </EditItemTemplate>
                                                     <ItemStyle Width="70px" HorizontalAlign="Center" CssClass="espacioCelda celdaGrid" />
                                                     <HeaderStyle CssClass="celdaGrid" />
                                               </asp:TemplateField>
                                                 <asp:TemplateField HeaderText="Nombre">
                                                     <ItemTemplate>
                                                         <asp:TextBox ID="txtnomAsistente" runat="server" Width="99%"></asp:TextBox>
                                                         <asp:HiddenField ID="txtidAsistente" runat="server" />
                                                         <asp:HiddenField ID="txtidCorrelativo" runat="server" />
                                                         <cc1:AutoCompleteExtender ID="AutoCompleteExtender6" runat="server" MinimumPrefixLength="1"
                                                             OnClientItemSelected="suggets_Asistentes" ServiceMethod="ListarAsistentes" ServicePath="WSbusquedas.asmx"
                                                             TargetControlID="txtnomAsistente" CompletionInterval="250" 
                                                             CompletionListCssClass="autocomplete_completionListElement" 
                                                             CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                             CompletionListItemCssClass="autocomplete_listItem">
                                                         </cc1:AutoCompleteExtender>
                                                     </ItemTemplate>
                                                     <ItemStyle Width="350px" HorizontalAlign="Left" CssClass="espacioCelda celdaGrid" />
                                                     <HeaderStyle CssClass="celdaGrid" />
                                                 </asp:TemplateField>
                                               <asp:TemplateField HeaderText="Cargo / Email">
                                                   <ItemTemplate>
                                                       <asp:TextBox ID="txtcargoAsistente" runat="server" Width="223px"></asp:TextBox>
                                                   </ItemTemplate>
                                                   <ItemStyle HorizontalAlign="Left" CssClass="espacioCelda celdaGrid" />
                                                   <HeaderStyle CssClass="celdaGrid" />
                                               </asp:TemplateField>
                                               <asp:TemplateField>
                                                   <ItemTemplate>
                                                       <asp:ImageButton ID="ibelimAsistente" runat="server" ImageUrl="~/images/eliminar.png" />
                                                   </ItemTemplate>
                                                   <ItemStyle HorizontalAlign="Center" Width="30px" CssClass="celdaGrid  celdaGrid" />
                                                   <HeaderStyle CssClass="celdaGrid" />
                                               </asp:TemplateField>
                                           </Columns>
                                       </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                            <asp:HiddenField ID="hdn_asistente_sugget" runat="server" />
                      </ContentTemplate>
                   </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td style="height: 35px"></td>
            </tr>
            <tr>
                <td style="height: 35px;">
                    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" align="left">
                                        <label>II. Agenda:</label>
                                        <asp:LinkButton ID="lbAgenda" runat="server" CssClass="agregar">Agregar Fila</asp:LinkButton></td>
                                </tr>
                                <tr >
                                    <td>
                                        <asp:GridView ID="gvAgenda" runat="server" AutoGenerateColumns="False" 
                                            Width="100%" SkinID="gridView1" OnRowDataBound="gvAgenda_RowDataBound" 
                                            OnRowCommand="gvAgenda_RowCommand" DataKeyNames="activo" 
                                            CssClass="GridView">
                                            <Columns>
                                                <asp:BoundField DataField="num" HeaderText="N&#176;">
                                                    <ItemStyle Width="22px" CssClass="celdaGrid" />
                                                    <HeaderStyle CssClass="celdaGrid" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="Actividad">
                                                    <ItemStyle Width="350px" HorizontalAlign="Left" VerticalAlign="Top" 
                                                        CssClass="espacioCelda  celdaGrid" />
                                                    <HeaderStyle CssClass="celdaGrid" />
                                                    <ItemTemplate>
                                                        <asp:HiddenField ID="txtidAgenda" runat="server" />
                                                        <asp:TextBox ID="txtactividadAgenda" runat="server" Width="95%" CssClass="ClassAcuerdos" TextMode="MultiLine"></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Responsable">
                                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" CssClass="espacioCelda celdaGrid" />
                                                    <HeaderStyle CssClass="celdaGrid" />
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtresponsableAgenda" runat="server" Width="250px"></asp:TextBox>
                                                        <asp:HiddenField ID="txtidResponsable" runat="server" />
                                                        <cc1:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" MinimumPrefixLength="1"
                                                            ServiceMethod="ListarResponsable" ServicePath="WSbusquedas.asmx" 
                                                            TargetControlID="txtresponsableAgenda" OnClientItemSelected="suggets_agenda" 
                                                            CompletionInterval="250" 
                                                            CompletionListCssClass="autocomplete_completionListElement" 
                                                            CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                            CompletionListItemCssClass="autocomplete_listItem">
                                                        </cc1:AutoCompleteExtender>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tiempo&lt;br&gt;(Minutos)">
                                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" CssClass="espacioCelda celdaGrid" />
                                                    <HeaderStyle CssClass="celdaGrid" />
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtTiempoAgenda" runat="server" Width="90px" MaxLength="5"></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="btnElimAgenda" runat="server" ImageUrl="~/images/eliminar.png" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" CssClass="celdaGrid" />
                                                    <HeaderStyle CssClass="celdaGrid" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                            <EmptyDataRowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                            <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                            <AlternatingRowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                          </table>
                      </ContentTemplate>
                    </asp:UpdatePanel>
                    <asp:HiddenField ID="hdn_idRespon_agenda_sugget" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="height:35px;">&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" align="left">
                                        <label>III. Desarrollo de la Agenda:</label>
                                        <asp:LinkButton ID="lbDesarrolloAgenda" runat="server" CssClass="agregar">Agregar Fila</asp:LinkButton></td>
                                </tr>
                                <tr >
                                    <td><asp:GridView ID="gvDesarrolloAgenda" runat="server" AutoGenerateColumns="False" Width="100%" SkinID="gridView1" OnRowDataBound="gvDesarrolloAgenda_RowDataBound" OnRowCommand="gvDesarrolloAgenda_RowCommand" DataKeyNames="activo" CssClass="GridView">
                                        <Columns>
                                            <asp:BoundField DataField="num" HeaderText="N&#176;" >
                                                <ItemStyle Width="22px" CssClass="celdaGrid" />
                                                <HeaderStyle CssClass="celdaGrid" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="Actividad">
                                                <HeaderStyle CssClass="celdaGrid" />
                                                <ItemStyle Width="430px" HorizontalAlign="Left" VerticalAlign="Top" CssClass="espacioCelda celdaGrid" />
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtDesAgeActividad" runat="server" Width="95%" CssClass="ClassAcuerdos" TextMode="MultiLine"></asp:TextBox>
                                                    <asp:HiddenField ID="txtidDesAgenda" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Hora Inicio">
                                                <HeaderStyle CssClass="celdaGrid" />
                                                <ItemStyle Width="75px" HorizontalAlign="Left" VerticalAlign="Top" CssClass="espacioCelda celdaGrid" />
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtDesAgeInicio" runat="server" Width="95%"></asp:TextBox><cc1:MaskedEditExtender
                                                        ID="MaskedEditExtender5" runat="server" Mask="99:99" MaskType="Time" TargetControlID="txtDesAgeInicio">
                                                    </cc1:MaskedEditExtender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Hora Final">
                                                <HeaderStyle CssClass="celdaGrid" />
                                                <ItemStyle Width="75px" HorizontalAlign="Left" VerticalAlign="Top" CssClass="espacioCelda celdaGrid" />
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtDesAgeFinal" runat="server" Width="95%"></asp:TextBox><cc1:MaskedEditExtender
                                                        ID="MaskedEditExtender6" runat="server" Mask="99:99" MaskType="Time" TargetControlID="txtDesAgeFinal">
                                                    </cc1:MaskedEditExtender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tiempo&lt;br/&gt;(Minutos)">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtDesAgeTotal" runat="server" Width="95%"></asp:TextBox>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" CssClass="espacioCelda celdaGrid" />
                                                <HeaderStyle CssClass="celdaGrid" />
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="ibElimDesAgenda" runat="server" ImageUrl="~/images/eliminar.png" />
                                                </ItemTemplate>
                                                <HeaderStyle BorderColor="Black" BorderStyle="None" CssClass="celdaGrid" />
                                                <ItemStyle Width="30px" CssClass="celdaGrid" />
                                            </asp:TemplateField>
                                        </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                   </asp:UpdatePanel>   
                </td>
            </tr>
            <tr>
                <td style="height: 35px">
                </td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" align="left">
                                        <label>IV. Acuerdos:</label>
                                        <asp:LinkButton ID="lbAcuerdos" runat="server" CssClass="agregar">Agregar Fila</asp:LinkButton></td>
                                </tr>
                                <tr >
                                    <td>
                                                <asp:GridView ID="gvAcuerdos" runat="server" AutoGenerateColumns="False" Width="100%" SkinID="gridView1" OnRowCommand="gvAcuerdos_RowCommand" OnRowDataBound="gvAcuerdos_RowDataBound" DataKeyNames="activo" CssClass="GridView">
                                                    <Columns>
                                                        <asp:BoundField DataField="num" HeaderText="N&#176;">
                                                            <ItemStyle Width="22px" CssClass="celdaGrid" />
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="Acuerdos">
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                            <ItemStyle Width="270px" HorizontalAlign="Left" 
                                                                CssClass="espacioCelda celdaGrid" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtacuerdos" runat="server" Width="240px" 
                                                                    CssClass="ClassAcuerdos" TextMode="MultiLine"></asp:TextBox>
                                                                <asp:HiddenField ID="txtidAcuerdos" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Plazo">
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                            <ItemStyle Width="70px" HorizontalAlign="Left" 
                                                                CssClass="espacioCelda celdaGrid" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtPlazo" runat="server" Width="60px"></asp:TextBox>
                                                                <cc1:MaskedEditExtender ID="MaskedEditExtender8" runat="server" Mask="99/99/9999"
                                                                    MaskType="Date" TargetControlID="txtPlazo">
                                                                </cc1:MaskedEditExtender>
                                                                <cc1:CalendarExtender ID="CalendarExtender4" runat="server" Format="dd/MM/yyyy" TargetControlID="txtPlazo">
                                                                </cc1:CalendarExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Responsable">
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                            <ItemStyle Width="210px" CssClass="espacioCelda celdaGrid" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtresponsable" runat="server" Width="200px"></asp:TextBox>
                                                                <asp:HiddenField ID="txtidResponsable" runat="server" />
                                                                <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" 
                                                                    MinimumPrefixLength="1" TargetControlID="txtresponsable" 
                                                                    ServicePath="WSbusquedas.asmx" ServiceMethod="ListarResponsable" 
                                                                    OnClientItemSelected="suggets_acuerdos" CompletionSetCount="12" 
                                                                    CompletionInterval="250" 
                                                                    CompletionListCssClass="autocomplete_completionListElement" 
                                                                    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                                    CompletionListItemCssClass="autocomplete_listItem">
                                                                </cc1:AutoCompleteExtender>
                                                                <asp:HiddenField ID="txtUserDirectory" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Solicitante">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtSolicitante" runat="server" Width="160px"></asp:TextBox>
                                                                <asp:HiddenField ID="txtidSolicitante" runat="server" />
                                                                <cc1:AutoCompleteExtender ID="aceAcuerdo_Solicitante" runat="server" 
                                                                    CompletionInterval="250" 
                                                                    CompletionListCssClass="autocomplete_completionListElement" 
                                                                    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                                    CompletionListItemCssClass="autocomplete_listItem" CompletionSetCount="12" 
                                                                    MinimumPrefixLength="1" OnClientItemSelected="suggets_acuerdos_solicitante" 
                                                                    ServiceMethod="ListarResponsable" ServicePath="WSbusquedas.asmx" 
                                                                    TargetControlID="txtSolicitante">
                                                                </cc1:AutoCompleteExtender>
                                                                <asp:HiddenField ID="txtUserDirectorySolicitante" runat="server" />
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                            <ItemStyle CssClass="espacioCelda celdaGrid" Width="150px" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="btnElimAcuerdo" runat="server" AlternateText="Delete" ImageUrl="~/images/eliminar.png" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" CssClass="celdaGrid" />
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                  </asp:UpdatePanel>
                    <asp:HiddenField ID="hdn_idRespon_acuerdos_sugget" runat="server" />
                    <asp:HiddenField ID="hdn_idSolici_acuerdos_sugget" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="height: 35px">
                                            &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel13" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" align="left">
                                        <label>De Conocimiento:</label>
                                        <asp:LinkButton ID="lbdeConocimiento" runat="server" CssClass="agregar">Agregar Fila</asp:LinkButton></td>
                                </tr>
                                <tr >
                                    <td>
                                                <asp:GridView ID="gvDeConocimiento" runat="server" AutoGenerateColumns="False" 
                                                    Width="100%" SkinID="gridView1" DataKeyNames="activo" 
                                                    CssClass="GridView">
                                                    <Columns>
                                                        <asp:BoundField DataField="num" HeaderText="N&#176;">
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                            <ItemStyle Width="22px" CssClass="celdaGrid" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="De Conocimiento">
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                            <ItemStyle CssClass="espacioCelda celdaGrid" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtUsuario" runat="server" Width="350px"></asp:TextBox>
                                                                <asp:HiddenField ID="txtidUsuario" runat="server" />
                                                                <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" 
                                                                    MinimumPrefixLength="1" TargetControlID="txtUsuario" 
                                                                    ServicePath="WSbusquedas.asmx" ServiceMethod="ListarResponsable" 
                                                                    OnClientItemSelected="suggets_DeConocimiento" CompletionSetCount="12" 
                                                                    CompletionInterval="250" 
                                                                    CompletionListCssClass="autocomplete_completionListElement" 
                                                                    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                                                                    CompletionListItemCssClass="autocomplete_listItem">
                                                                </cc1:AutoCompleteExtender>
                                                                <asp:HiddenField ID="txtUserDirectory" runat="server" />
                                                                <asp:HiddenField ID="txtidDeConocimiento" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Cargo / Email">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtcargoMail" runat="server" Width="223px"></asp:TextBox>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <HeaderStyle CssClass="celdaGrid" Width="250px" />
                                                            <ItemStyle CssClass="espacioCelda celdaGrid" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="btnElimDeConocimiento" runat="server" AlternateText="Delete" ImageUrl="~/images/eliminar.png" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" CssClass="celdaGrid" />
                                                            <HeaderStyle CssClass="celdaGrid" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                  </asp:UpdatePanel>
                    <asp:HiddenField ID="hdn_idConocimiento_sugget" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="height: 35px">
                                            &nbsp;</td>
            </tr>
            <tr>
                <td>
                     <table style="width:100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="cabeceraDetalle" colspan="5" align="left">
                                <label>V. Siguiente Reuni&oacute;n</label>
                             
                            </td>
                        </tr>
                        <tr >
                            <td colspan="5">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <table cellpadding="0" cellspacing="0" class="Sig_reunion">
                                                <tr>
                                                    <td class="Sig_reunionColor espacioCelda Sig_reunionTD" >
                                                        Fecha:</td>
                                                    <td align="left" class="espacioCelda Sig_reunionTD">
                                                        <asp:TextBox ID="txtfecSigReunion" runat="server" Width="122px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>                                       
                                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" 
                                                     TargetControlID="txtfecSigReunion" BehaviorID="ctl38_CalendarExtender4">
                                            </cc1:CalendarExtender>
                                            <cc1:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99/99/9999"
                                                MaskType="Date" TargetControlID="txtfecSigReunion">
                                            </cc1:MaskedEditExtender>
                                        </td>
                                        <td style="width:45px;">&nbsp;</td>
                                        <td style="width: 190px">
                                             <table cellpadding="0" cellspacing="0"  class="Sig_reunion">
                                                <tr>
                                                    <td class="Sig_reunionColor espacioCelda Sig_reunionTD">
                                                        Lugar:
                                                    </td>
                                                    <td style="width: 98px" align="left" class="espacioCelda Sig_reunionTD">
                                                     <asp:UpdatePanel ID="UpdatePanel14" runat="server">
                                                            <ContentTemplate>
                                                            <asp:DropDownList ID="ddllugarSigReu" runat="server" Width="228px" 
                                                                    AutoPostBack="True">
                                                                <asp:ListItem Value="1">Lugar 1</asp:ListItem>
                                                                <asp:ListItem Value="2">Lugar 2</asp:ListItem>
                                                                <asp:ListItem Value="3">Lugar 3</asp:ListItem>
                                                                <asp:ListItem Value="4">Lugar 4</asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:Panel runat="server" ID="pnlSiguienteReu_otrolugar" Visible="false">
                                                                <asp:TextBox ID="txtlugarSigReu_otroLugar" runat="server" Width="207px"></asp:TextBox>
                                                            </asp:Panel>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width:45px;">&nbsp;</td>
                                        <td>
                                            <table cellpadding="0" cellspacing="0"  class="Sig_reunion">
                                                <tr>
                                                    <td class="Sig_reunionColor espacioCelda Sig_reunionTD">Hora:</td>
                                                    <td align="left" class="espacioCelda Sig_reunionTD">
                                                        <asp:TextBox ID="txthoraSigReunion" runat="server"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                            <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Mask="99:99" MaskType="Time"
                                                TargetControlID="txthoraSigReunion" UserTimeFormat="TwentyFourHour">
                                            </cc1:MaskedEditExtender>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" align="left">
                                        <label>Agenda Preliminar</label><asp:LinkButton ID="lbAgendaPriliminar" runat="server" CssClass="agregar">Agregar Fila</asp:LinkButton></td>
                                </tr>
                                <tr >
                                    <td><asp:GridView ID="gvAgendaPreliminar" runat="server" AutoGenerateColumns="False" Width="100%" SkinID="gridView1" OnRowCommand="gvAgendaPreliminar_RowCommand" OnRowDataBound="gvAgendaPreliminar_RowDataBound" DataKeyNames="activo" CssClass="GridView">
                                        <Columns>
                                            <asp:BoundField DataField="num" HeaderText="N&#176;">
                                                <HeaderStyle Width="22px" CssClass="celdaGrid" />
                                                <ItemStyle Width="22px" CssClass="celdaGrid" />
                                            </asp:BoundField>
                                            <asp:TemplateField>
                                                <HeaderStyle CssClass="celdaGrid" />
                                                <ItemStyle HorizontalAlign="Left" CssClass="celdaGrid" />
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtagendaPrelim" runat="server" Width="625px" 
                                                        CssClass="ClassAcuerdos" TextMode="MultiLine"></asp:TextBox>
                                                    <asp:HiddenField ID="txtidAgendaPrelim" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="ibEliminarAgePrelim" runat="server" ImageUrl="~/images/eliminar.png" />
                                                </ItemTemplate>
                                                <HeaderStyle Width="30px" CssClass="celdaGrid" />
                                                <ItemStyle Width="30px" CssClass="celdaGrid" />
                                            </asp:TemplateField>
                                        </Columns>
                                        </asp:GridView>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 8px">&nbsp;</td>
                                </tr>
                            </table>
                      </ContentTemplate>
                   </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                    
                    <asp:LinkButton ID="lbRetornar1" runat="server" CssClass="btnRetornar" >Cancelar</asp:LinkButton>
                    <asp:LinkButton  ID="lbImprimir1" runat="server" CssClass="btnImprimir">Imprimir</asp:LinkButton>
                    <asp:LinkButton ID="lbpublicar1" runat="server" CssClass="btnPublicar" OnClientClick="return validarActas();">Publicar</asp:LinkButton>
                    <asp:LinkButton ID="lbGuardar1" runat="server" CssClass="btnGuardar" OnClientClick="return validarActas();">Guardar</asp:LinkButton>
                    
                    </td>
                    
                    
            </tr>
        </table>
    </div>
    </form>

     <input id="btnposicion" type="button" value="button" style="visibility:hidden;" />
    
</body>
</html>
